<!DOCTYPE html>
<script>
function show(){
	var date = new Date(); //日期对象
	var now = "";
	now = date.getFullYear()+"年"; //读英文就行了
	now = now + (date.getMonth()+1)+"月"; //取月的时候取的是当前月-1如果想取当前月+1就可以了
	now = now + date.getDate()+"日";
	now = now + date.getHours()+"时";
	now = now + date.getMinutes()+"分";
	now = now + date.getSeconds()+"秒";
	document.getElementById("nowDiv").innerHTML = now; //div的html是now这个字符串
	setTimeout("show()",1000); //设置过1000毫秒就是1秒，调用show方法
}
</script>

<html>
<head>
<meta http-equiv="refresh" content="10">
<meta charset="utf-8">
<title>test</title>
</head>
<body onload="show()">
	<h1>FreeRTOS + FreeRTOS-Plus-TCP + FreeRTOS-Plus-FAT </h1>
	<h1>来自阿伟的问候！</h1>
	<div id="nowDiv"></div>
</body>
</html>
